home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
326-350
/
disk_334
/
fbm
/
fbm-0.9.zoo
/
doc-0.94
/
fbclean.man
< prev
next >
Wrap
Text File
|
1990-03-03
|
2KB
|
133 lines
FBCLEAN(1) USER COMMANDS FBCLEAN(1)
NAME
fbclean - flip isolated pixels in a 1bit image
SYNOPSIS
fbclean [ -b<cleaner> -t<threshhold> -n<nbr> ] [ -<type> ] < bitmap > bitmap
DESCRIPTION
Flips isolated pixels (this can be used to clean up "snow"
in some halftoned images. Can also convert a grayscale
image to bitmap by theshholding before the cleaning is done.
OPTIONS
-b _c_l_e_a_n_e_r option, specifies the minimum number of
"nearby" like pixels to remain the same color.
-n _n_e_i_g_h_b_o_r_s, the size of the neighborhood. To be
"nearby" means to be located in an NxN square around
the target pixel.
-t _t_h_r_e_s_h_h_o_l_d command, used to halftone the image before
cleaning. The default is no theshholding.
-B _f_a_c_e format, as used by Bennet Yee's _f_a_c_e program at
CMU.
-F _F_B_M, format (by default, the default). You are
guaranteed not to lose information by specifying FBM as
the default.
-G _G_I_F, Compuserve GIF format.
-I _I_F_F format, interleaved bitmaps (ILBM), used by Amigas.
-P _P_B_M, Jef Poskanzer's bitmap format.
-S _s_u_n, Sun rasterfiles (not run length encoded).
EXAMPLE
To take a bitmap and clean up pixels with fewer than 2 like
neighbors in the surrounding 5x5 square, outputing s Sun
rasterfile:
% fbclean -S -b2 -n5 < foo.1bit > bar.1bit
To do the same thing to a grayscale file (threshholding
first with 128):
% fbclean -S -b2 -n5 -t128 < foo.1bit > bar.1bit
SEE ALSO
fbm(1) for general discussion, pbm(1) for PBM routines.
Sun Release 4.0 Last change: 07-Mar-89 1
FBCLEAN(1) USER COMMANDS FBCLEAN(1)
BUGS
None known.
HISTORY
Copyright (c) 1989 by Michael L. Mauldin. Permission is
granted to use this program in whole or in part provided
that you do not sell it for profit and that this copyright
notice is retained unchanged.
07-Mar-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.9) mlm@cs.cmu.edu
Sun Release 4.0 Last change: 07-Mar-89 2